home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / time.man < prev    next >
Encoding:
Text File  |  1991-02-04  |  2.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TIME                  C Library Procedures                   TIME
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      time, ftime - get date and time
  10.  
  11. SSYYNNOOPPSSIISS
  12.      lloonngg ttiimmee((00))
  13.  
  14.      lloonngg ttiimmee((ttlloocc))
  15.      lloonngg **ttlloocc;;
  16.  
  17.      ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
  18.      ##iinncclluuddee <<ssyyss//ttiimmeebb..hh>>
  19.      ffttiimmee((ttpp))
  20.      ssttrruucctt ttiimmeebb **ttpp;;
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      TThheessee iinntteerrffaacceess aarree oobbssoolleetteedd bbyy ggeettttiimmeeooffddaayy((22))..
  24.  
  25.      _T_i_m_e returns the time since 00:00:00 GMT, Jan. 1, 1970,
  26.      measured in seconds.
  27.  
  28.      If _t_l_o_c is nonnull, the return value is also stored in the
  29.      place to which _t_l_o_c points.
  30.  
  31.      The _f_t_i_m_e entry fills in a structure pointed to by its argu-
  32.      ment, as defined by <_s_y_s/_t_i_m_e_b._h>:
  33.  
  34.      /*
  35.       * Copyright (c) 1982, 1986 Regents of the University of California.
  36.       * All rights reserved.  The Berkeley software License Agreement
  37.       * specifies the terms and conditions for redistribution.
  38.       *
  39.       *   @(#)timeb.h7.1 (Berkeley) 6/4/86
  40.       */
  41.  
  42.      /*
  43.       * Structure returned by ftime system call
  44.       */
  45.      struct timeb
  46.      {
  47.           time_t   time;
  48.           unsigned short millitm;
  49.           short    timezone;
  50.           short    dstflag;
  51.      };
  52.  
  53.      The structure contains the time since the epoch in seconds,
  54.      up to 1000 milliseconds of more-precise interval, the local
  55.      time zone (measured in minutes of time westward from
  56.      Greenwich), and a flag that, if nonzero, indicates that Day-
  57.      light Saving time applies locally during the appropriate
  58.      part of the year.
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 9, 1985                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TIME                  C Library Procedures                   TIME
  71.  
  72.  
  73.  
  74. SSEEEE AALLSSOO
  75.      date(1), gettimeofday(2), settimeofday(2), ctime(3)
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0                May 9, 1985                          2
  130.  
  131.  
  132.  
  133.